//
//  YZMFastPayConfirmViewController.m
//  YZMicroStock
//
//  Created by wangminhong on 16/7/15.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMFastPayConfirmViewController.h"

@interface YZMFastPayConfirmViewController ()

@property (nonatomic, assign) BOOL backFlag;

@end

@implementation YZMFastPayConfirmViewController

- (void)viewDidLoad{
    [super viewDidLoad];
}
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    
    NSString *urlStr = request.URL.absoluteString;
    if ([[urlStr lowercaseString] containsString:@"paysuccess"]) {
        
        [YZMHCMInstance popViewController:nil];
        return NO;
    }
    
    return [super webView:webView shouldStartLoadWithRequest:request navigationType:navigationType];
}

- (BOOL)shouldAutoBackToPreviousController{
    
    return YES;
}

@end
